﻿using System;
using System.Web.UI.WebControls;
using System.Web.UI;
using BLL;
using Model;

public partial class ProductManage_BothProductManage_ClientSoftView : System.Web.UI.Page
{
    private ClientSoft cs;

    public ProductManage_BothProductManage_ClientSoftView()
    {
        cs = new ClientSoft();
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindClientSoft();
        }
    }

    protected void BindClientSoft()
    {
        this.GridView1.DataSource = cs.LoadEntities();
        this.GridView1.DataBind();
    }

    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        this.GridView1.PageIndex = e.NewPageIndex;
        BindClientSoft();
    }
}
